package com.zan.backend.controller;

import com.zan.backend.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author Zan
 * @Create 2024/9/9 15:36
 * @ClassName: UserController
 * @Description : TODO 请用一句话描述该类的功能
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping("/find-user")
    public String findUser(){
        return userService.list().toString();
    }
}
